<template>
    <div class="container">
        <div class="flex flex-center pad-t-30">
            <img v-if="fileSpace" class="width-275 height-275" :src="codeSrc" alt="">
        </div>
        <div class="pad-t-15">
            扫码进入确认后，便可成为核销员
        </div>
    </div>    
</template>
<script>
import { saveVerifierCodeUrl } from '@/api/personal'
export default {
  data() {
    return {
      MemberId: '',
      codeSrc: ''
    }
  },
  onShow() {
    this.MemberId = this.getCustomerId
    this.pageInit()
  },
  methods: {
    pageInit() {
      this.$pt.showLoading({
        title: '加载中',
        mask: true
      })
      saveVerifierCodeUrl({memberId: this.MemberId}).then((response) => {
        this.$pt.hideLoading()
        if (response.isError) return
        this.codeSrc = response.data
      }).catch(() => {
      })
    }
  }
}
</script>
<style lang="less" scoped>
.container{
    text-align: center;
    background: white;
    min-height: 100vh;
}
</style>
